projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e4146a
)
tests: allow specifying tmpdir
author
Jonathan Lebon
<jlebon@redhat.com>
Wed, 20 Sep 2017 17:06:41 +0000
(17:06 +0000)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Thu, 21 Sep 2017 21:50:40 +0000
(21:50 +0000)
Allow developers to override the default /var/tmp dir, which e.g. might
be on overlayfs and thus produces reduced coverage.
Closes: #1207
Approved by: cgwalters
buildutil/tap-test
patch
|
blob
|
history
diff --git
a/buildutil/tap-test
b/buildutil/tap-test
index ac729d8dc5fe1e0243ba60e267d7250811a1a93d..e35f2a4afc4b3ff738da9c2ceb5f24a8aa6df474 100755
(executable)
--- a/
buildutil/tap-test
+++ b/
buildutil/tap-test
@@
-8,7
+8,8
@@
srcd=$(cd $(dirname $1) && pwd)
bn=$(basename $1)
-tempdir=$(mktemp -d /var/tmp/tap-test.XXXXXX)
+TEST_TMPDIR=${TEST_TMPDIR:-/var/tmp}
+tempdir=$(mktemp -d $TEST_TMPDIR/tap-test.XXXXXX)
touch ${tempdir}/.testtmp
function cleanup () {
if test -f ${tempdir}/.testtmp; then